/*
 * KKGridView.cpp
 *
 *  Created on: 2013-9-15
 *      Author: wanghua
 */

#include "KKGridView.h"
#include "XmlUtils.h"

#include <iostream>
#include <string.h>

USING_NS_CC;

using namespace std;

KKGridView::KKGridView() {

}

KKGridView::~KKGridView() {
}

void KKGridView::saveToXml(TiXmlElement* element) {

	KKAdapterLayer::saveToXml(element);

	element->SetAttribute("class", "GridView");
}

void KKGridView::layout() {
	KKAdapterLayer::layout();
}

bool KKGridView::addNode(KKNode* node, int zOrder, int tag) {

	bool result = KKAdapterLayer::addNode(node, zOrder, tag);

	layout();

	return result;
}
